<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@ include file="../common/taglibs.jsp"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
	<head>
		<link rel="stylesheet" href="${ctx}/css/common.css" type="text/css"></link>
		<link rel="stylesheet" href="${ctx}/css/reset.css" type="text/css"></link>
		<script type="text/javascript" src="${ctx}/js/jquery-1.7.2.js"></script>
 		<script type="text/javascript" src="${ctx}/js/jquery.easydrag.handler.beta2.js"></script>
  		<script type="text/javascript" src="${ctx}/js/My97DatePicker/WdatePicker.js"></script>
  		<script type='text/javascript' src='${ctx}/dwr/interface/EmpManager.js'></script>
  		<script type='text/javascript' src='${ctx}/dwr/interface/DutyManager.js'></script>
  		<script type='text/javascript' src='${ctx}/dwr/interface/EducationManager.js'></script>
  		<script type='text/javascript' src='${ctx}/dwr/interface/EduDegreeManager.js'></script>
  		<script type='text/javascript' src='${ctx}/dwr/interface/SkillGradeManager.js'></script>
  		<script type='text/javascript' src='${ctx}/dwr/interface/EmpStatusManager.js'></script>
		<script type='text/javascript' src='${ctx}/js/Dossier/EmpManager.js'  charset="UTF-8"></script>
  		<script type='text/javascript' src='${ctx}/dwr/interface/dwrDeptManager.js'></script>
		<script type='text/javascript' src='${ctx}/dwr/engine.js'></script>
  		<script type='text/javascript' src='${ctx}/dwr/util.js'></script>
		
	</head>
	<body>
		<TABLE cellSpacing=0 cellPadding=0 width="100%" align=center border=0>
			<TR height=28>
				<TD background=../images/title_bg1.jpg style="FONT-SIZE: 12px;">
					当前位置:人员档案管理 >> 人员信息查询
				</TD>
			</TR>
			<TR>
				<TD bgColor=#b1ceef height=1></TD>
			</TR>
			<TR height=20>
				<TD background=../images/shadow_bg.jpg></TD>
			</TR>
		</TABLE>
		<div class="query">
			<div class="querytype">
				<label>
					查询条件：
				</label>
				<select class="queryselect" name="searchtype" id="searchtype">
					<option value="empname">
						姓名
					</option >
					<option value="empid">
						ID
					</option >
					<option value="sex">
						性别
					</option >
					<option value="education">
						学历
					</option>
					<option value="dept">
						部门
					</option>
					<option value="duty">
						职务
					</option>
					<option value="status">
						状态
					</option>
				</select>
				<input class="queryinput" type="text" name="querytype" id="querytype"/>
			</div>
			<div class="querytime">
				<label>
					入职时间：
				</label>
				<div class="selecttime">
					<label>
						起始:
						<input type="text" onClick="WdatePicker()" size="10" />
					</label>
					<label>
						结束:
						<input type="text" onClick="WdatePicker()" size="10"
							style="margin-right: 10px" />
					</label>
				</div>
				<div class="querybtn" oncilck="search()" >
					<span class="STYLE1"><img src="${ctx}/images/a1.gif" width="9"
							height="9" /> </span>
					<span class="STYLE1"> </span><a  style="cursor: pointer;">查询</a><span
						class="STYLE1"></span>
				</div>

			</div>
			
			<div class="clear"></div>
		</div>
		<div class="bottom"></div>
		<div id="main">
			<table id="detail_t">
				<tr>
					<th>序号</th>
					<th>员工编号</th>
					<th>员工姓名</th>
					<th>学历</th>
					<th>部门</th>
					<th>职务</th>
					<th>人员状态</th>
					<th>技术等级</th>
					<th>职称</th>
					<th>更多操作</th>
				</tr>
				
				<c:forEach items="${page.list}" var="t" varStatus="status">
					<tr>
						<td>${status.count}</td>
						<td id="${status.count}${2}">${t.empno}</td>
						<td id="${status.count}${1}">${t.name}</td>
						<td id="${status.count}${11}">${t.education.name}</td>
						<td id="${status.count}${17}">${t.dept.name}</td>
						<td id="${status.count}${13}">${t.duty.name}</td>
						<td id="${status.count}${15}">${t.empStatus.name}</td>
						<td id="${status.count}${16}">${t.skillGrade.name}</td>
						<td id="${status.count}${14}">${t.jobTitle.name}</td>
						
						<td height="18" bgcolor="#FFFFFF">
							<div align="center">
								<span class="STYLE1"><img src="${ctx}/images/037.gif"
										width="9" height="9" /> </span>
								<span class="STYLE1"> [</span><a
									oncilck="clickEditEmp('${status.count}','${t.id}','edit_div')">详情/编辑</a><span class="STYLE1">]</span>
								
	
							</div>
						</td>
					</tr>
				</c:forEach>

			</table>
			<div class="manu">
				共
				<font color="#ff6600">${page.pageCount}</font>条记录当前第
				<font color="#ff6600">${page.pageNo}/${page.pageCount}</font>页
				<a href="FindTrainScore?pageNo=${1}">首页</a>
				<a href="FindTrainScore?pageNo=${page.pageNo-1}">上一页</a>
				<a href="FindTrainScore?pageNo=${page.pageNo+1}">下一页</a>
				<a href="FindTrainScore?pageNo=${page.pageCount}">末页
				</a>每页显示
				<input type="text" name="pageSize" size="2" />
				条
				<input type="submit" value="提交" class="submitbuttton" onclick="changePageSize()" />
			</div>
		</div>

	
<div id="edit_div" class="pop_box">
			<div class="p_head">
				<span class="p_h_title">员工详情</span>
				<span><a class="p_h_close" onclick="hideDiv('edit_div');"title="close">X</a> </span>
			</div>
			<div class="p_box_body" id="p_b_body">
				<div class="p_con">
				<form action="sdk/servlet/UpdateEmpServlet" method="post">
					<table id="p_con_t" >
						<tr>
							<td class="t1">
								头像：
							</td>
							<td id="photo_edit">
							<input type="file" name="up_img" value="浏览.." size="10" oncilck=""></td>
						</tr>
						<tr>
							<td class="t1">
								员工姓名：
							</td>
							<td>
							
								<input id="name_edit" type="text" />
							
							</td>
						</tr>
						<tr>
							<td class="t1">
								性别：
							</td>
							<td>
							
								<select id="sex_edit">
								<option value="男">男</option>
								<option value="女">女</option>
								</select>
								
							</td>
						</tr>
						<tr>
							<td class="t1">
								年龄：
							</td>
							<td>
							
								<input id="birthday_edit" type="text" />
							
							</td>
						</tr>
						<tr>
							<td class="t1">
								生日：
							</td>
							<td>
							
								<input id="birthday_edit" type="text" />
							
							</td>
						</tr>
						<tr>
							<td class="t1">
								学历：
							</td><td>
							
							<select name="educationtype" id="educationtype">
				    			<option  value="0">--请选择--</option>
				    		</select>
				    		
				    		</td>
						</tr>
						<tr>
							<td class="t1">
								学位：
							</td>
							<td>
							<select name="eduDegreetype" id="eduDegreetype">
				    			<option  value="0">--请选择--</option>
				    		</select>
				    		</td>
						</tr>
						<tr>
				   	 	<td>部门：</td>
				    		<td>
				    		<select name="depttype" id="depttype">
				    			<option  value="0">--请选择--</option>
				    		</select>
				    		</td>
				    	</tr>
						<tr>
							<td>
								职位：
							</td>
							<td>
				    		<select name="dutytype" id="dutytype">
				    			<option  value="0">--请选择--</option>
				    		</select>
				    		</td>
						<tr>
							<td class="t1">
								入职时间：
							</td>
							<td>
								<input id="empid" type="text" onClick="WdatePicker()" />
							</td>
						</tr>
						<tr>
							<td class="t1">
								技术等级：
							</td>
							<td>
				    		<select name="skilltype" id="skilltype">
				    			<option  value="0">--请选择--</option>
				    		</select>
				    		</td>
						</tr>
						<tr>
							<td class="t1">
								工资：
							</td>
							<td>
								<input id="salary_edit" type="text" />
							</td>
						</tr>
						<tr>
							<td class="t1">
								人员状态：
							</td>
							<td>
				    		<select name="empstatustype" id="empstatustype">
				    			<option  value="0">--请选择--</option>
				    		</select>
				    		</td>
						</tr>
						<tr>
							<td class="t1">
								家庭地址：
							</td>
							<td>
								<input id="address_edit" type="text" />
							</td>
						</tr>
						<tr>
							<td class="t1">
								电话：
							</td>
							<td>
								<input id="phone_edit" type="text" />
							</td>
						</tr>
						<tr>
							<td class="t1">
								身份证：
							</td>
							<td><input type="text" />
								<input type="file" name="up_img" value="浏览.." size="20">
							</td>
						</tr>
						
						<tr>
							<td class="t1">
								学历证书：
							</td>
							<td><input type="text" />
								<input type="file" name="up_img" value="浏览.." size="20">
							</td>
						</tr>
						<tr>
							<td></td>
							<td>
								<input type="submit" value="修改"  />
							</td>
						</tr>
					</table>
					</form>
				</div>
			</div>
		</div>
	</body>
	

</html>